<!--
/**
 * Template Listagem
 * @author Erich Oliveira <ericholiveira@gmail.com>
 * @date 23/12/2011
 */
-->
<!--
/**
 * Template registros
 * @author Erich Oliveira <ericholiveira@gmail.com>
 * @date 23/12/2011
 */
-->
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
{BEGIN style_block}<style>
#height100{$id} {padding:1px;}
#toplinks_caption{$id} {padding:0px 1px;font-size:12px;font-weight:bold;}
#mastertable_block{$id} {margin-left:50px;margin-top:2px}
#toplinks_block{$id} {width:100%;padding:0px;padding-left:30px}
#toplinks_block{$id} span {padding-left:1px;}
#search_records_block{$id} { padding-left:5px;}
#search_records_block{$id} > * {vertical-align:middle;}
#search_records_block{$id} select {margin:3px 0px;}
#login_block{$id} {padding:10px; margin-bottom:3px}
#login_block{$id} * {margin-left:5px; padding:5px 0px;}
#menu_block{$id} {padding:10px;}
#menu_block{$id} * {list-style-type:none;}
#menu_block{$id} IMG {vertical-align:middle;}
#record_controls{$id} {padding:10px 10px;text-align: left;}
#record_controls{$id} span{padding-left:10px;}
#recordcontrolsadd_block{$id} {padding:10px 10px;border: solid; border-width: 1px; border-color: #C0C0C0;text-align: right;}
#grid_block{$id} {border:solid 1px #C0C0C0;}
.listIcons img.listIcon{margin:0 3px;opacity:0.3;filter:alpha(opacity=30);}
.grid_recordheader {padding-top:5px;}
.grid_recordheader a {margin:0 5px;}
body {margin:20px;padding:10px;}
.bottomPanelBorder{
	/*margin-right: 10px;*/
	padding-bottom: 18px;
	border-left: 1px solid #C0C0C0;
	border-right: 1px solid #C0C0C0;
	border-bottom: 1px solid #C0C0C0;
}
#searchform{$id}{float: left;}
#searchPanelContainer{$id}{
	width: 200px;
	float: left;
	position:absolute;
}
.searchOptions {margin-top: -10px;}
/*report styles*/
#export_links{$id} * {}
</style>
{END style_block}
{BEGIN iestyle_block}<!--[if IE]>
<style>
.grid {height:100%;}
</style>
<![endif]-->
{END iestyle_block}
</HEAD>
<BODY marginheight="0" marginwidth="0" {$bodyattrs}>{BEGIN body}{$header} 
<DIV id="height100{$id}">{BEGIN toplinks_block}<DIV id="toplinks_block{$id}"><H2><B>Unidades&nbsp;Avançadas&nbsp;de&nbsp;Administração&nbsp;e&nbsp;Finanças</B></H2>


{BEGIN export_link}<!--<span ><a href="unidades_uaaf_export.php" {$exportlink_attrs}><img src="botoes/export.png" width="16" height="16" border="0"></a></span>-->
<INPUT class=button onclick="location.href='unidades_uaaf_export.php'" value=Exportar type=button> 
{END export_link}



{BEGIN printall_link}<!--<span>
<a target="_blank" href="unidades_uaaf_print.php?all=1" {$printallpictlink_attrs}>
<img alt=" " src="images/icone_imprimir.gif" border=0></a>&nbsp;
</span>-->
<INPUT class=button onclick="location.href='unidades_uaaf_print.php?all=1'" value=Imprimir type=button> 
{END printall_link}





</DIV>
{END toplinks_block}
{BEGIN search_records_block}<DIV id="recordcontrolsadd_block{$id}" class=shade><SPAN id="search_records_block{$id}" class=shade>{BEGIN searchform}<!-- Search panel header for horizontal layouts -->
		<SPAN id="searchform{$id}" align="absmiddle"><SPAN id="searchPanelHeader{$id}">{$simpleSearchFieldCombo} {$simpleSearchTypeCombo} {BEGIN searchform_text}<INPUT size=25 {$searchfor_attrs}>
		{END searchform_text} &nbsp; {BEGIN searchform_search}<SPAN class=buttonborder><INPUT class=button value=Buscar type=button {$searchbutton_attrs}></SPAN> 
            
		{END searchform_search} 
&nbsp; {BEGIN searchform_showall}<SPAN id="showall{$id}" class=buttonborder {$showAllCont_attrs}><INPUT class=button value="Mostrar Todos" type=button {$showallbutton_attrs}></SPAN>
		{END searchform_showall} 
</SPAN>
	{BEGIN searchPanelTopButtons}<SPAN><!--&nbsp;
		<span class="buttonborder"><input class="button" type="button" id="showSrchWin{$id}" style="width: 18px; background-image: url(images/search/showWindowPin.gif);" {$showHideSearchWin_attrs} ></span>
        -->&nbsp; <SPAN class=buttonborder><input class="button" type="button" id="showOptPanel{$id}" style="background-image: url(images/search/ArrowDown.png);" {$showHideSearchPanel_attrs} ></SPAN> 
</SPAN>
	{END searchPanelTopButtons}
</SPAN> 
	{END searchform}

		{BEGIN details_block}<SPAN {$details_attrs}>Ítens Encontrados: <B>{$records_found}</B>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>
	{END details_block} 
{BEGIN pages_block}<SPAN {$pages_attrs}>Página <B>{$page}</B> de <B>{$maxpages}</B></SPAN>
	{END pages_block} 
&nbsp;&nbsp;&nbsp;&nbsp; {BEGIN recordspp_block}<!-- class="center_block" -->
			{$recsPerPage} {END recordspp_block}
	</SPAN>
</DIV>
{END search_records_block} 


<!-- search panel and window -->
<DIV id="searchPanelContainer{$id}" class=searchPanelContainer>{$adv_search_panel} </DIV>
<DIV moveForSearch="move{$id}" {$marginStyle}>{BEGIN recordcontrols_block}<DIV id="record_controls{$id}">{$lookupSearchControls} {BEGIN record_controls}<SPAN id="record_controls{$id}2">{BEGIN exportselected_link}<SPAN class=buttonborder {$exportselectedlink_span}><INPUT class=button value="Exportação selecionada" type=button {$exportselectedlink_attrs}> 
</SPAN>
        {END exportselected_link}

                {BEGIN printselected_link}<SPAN class=buttonborder {$printselectedlink_span}><INPUT class=button value="Impressão selecionada" type=button {$printselectedlink_attrs}> 
</SPAN>
        {END printselected_link}
 </SPAN>
{END record_controls}
</DIV>
{END recordcontrols_block}
<DIV id="usermessage{$id}" class=message>{$user_message}</DIV>
{BEGIN grid_block}<TABLE id="grid_block{$id}" class=display border=0 cellSpacing=2 cellPadding=3 name="maintable">{BEGIN grid_header}<THEAD><TR vAlign=top {$gridHeader_attrs}>{BEGIN record_header}{BEGIN listIcons_column}<th align="center" class="blackshade" {$widthListIcons} iEditCont="all" nowrap="nowrap">&nbsp;</th>
{END listIcons_column}{BEGIN checkbox_column}<TH class=blackshade width=20 align=left>{BEGIN checkbox_header}<INPUT 
      type=checkbox {$checkboxheader_attrs}> {END checkbox_header}
    </th>{END checkbox_column}
    {BEGIN unidades_uaaf_dtable_column}<TH class=blackshade align=center><img 
      title="Informações Complementares" src="icones2/small/grey/Blocks.png" /></TH>
{END unidades_uaaf_dtable_column}{BEGIN no_pessoa_fieldheadercolumn}<th class="blackshade" align="center">&nbsp;
Nome UAAF
&nbsp;
</th>
{END no_pessoa_fieldheadercolumn}
    {BEGIN tx_email_fieldheadercolumn}<TH class=blackshade align=center>&nbsp; {BEGIN tx_email_fieldheader}<A class=defblackshade {$tx_email_orderlinkattrs}>Email</A>
{END tx_email_fieldheader} 
      &nbsp; </TH>
{END tx_email_fieldheadercolumn}
    {BEGIN nu_ddd_fieldheadercolumn}<TH class=blackshade align=center>&nbsp; {BEGIN nu_ddd_fieldheader}<A class=defblackshade {$nu_ddd_orderlinkattrs}>DDD</A>
{END nu_ddd_fieldheader} &nbsp; </TH>
{END nu_ddd_fieldheadercolumn}
    {BEGIN nu_telefone_fieldheadercolumn}<TH class=blackshade align=center>&nbsp; {BEGIN nu_telefone_fieldheader}<A class=defblackshade {$nu_telefone_orderlinkattrs}>Telefone</A>
{END nu_telefone_fieldheader} &nbsp; </TH>
{END nu_telefone_fieldheadercolumn}
    {BEGIN endrecordheader_block}<TH>&nbsp;</TH>
{END endrecordheader_block}

{END record_header}
</TR>
</THEAD>
{END grid_header}
  {BEGIN grid_row}<TR vAlign=top {$rowstyle} {$rowattrs}>{BEGIN grid_record}{BEGIN listIcons_column}<td align="left" class="listIcons" iEditCont="all" valign="middle" nowrap="nowrap"></td>
{END listIcons_column}{BEGIN checkbox_column}<TD vAlign=middle width=20 align=left>{BEGIN checkbox}<INPUT 
      type=checkbox {$checkbox_attrs}> {END checkbox} </td>{END checkbox_column}
    {BEGIN unidades_uaaf_dtable_column}<td align="left" valign="middle" nowrap="nowrap">{BEGIN unidades_conservacao_dtable_link}<A 
      class=tooltip rel="Unidades Organizacionais" 
      {$unidades_conservacao_dtablelink_attrs}><img src="botoes/view.png" alt="Unidades Organizacionais" title="Unidades Organizacionais"/> <SPAN {$unidades_conservacao_childnumber_attr}>{BEGIN unidades_conservacao_childcount}({$unidades_conservacao_childnumber}) 
      {END unidades_conservacao_childcount}
  </SPAN>  </A>&nbsp; {END unidades_conservacao_dtable_link}

  {BEGIN cadastro_pessoa_dtable_link}<A 
      class=tooltip rel="Lista de Servidores" 
      {$cadastro_pessoa_dtablelink_attrs}><img src="botoes/view.png" alt="Lista de Servidores" title="Lista de Servidores"/> <SPAN {$cadastro_pessoa_childnumber_attr}>{BEGIN cadastro_pessoa_childcount}({$cadastro_pessoa_childnumber}) 
      {END cadastro_pessoa_childcount}
  </SPAN>  </A>&nbsp; {END cadastro_pessoa_dtable_link}
 </td>
{END unidades_uaaf_dtable_column}{BEGIN no_pessoa_fieldcolumn}<td valign="middle" {$no_pessoa_style}>{$no_pessoa_value}
</td>
{END no_pessoa_fieldcolumn}
    {BEGIN tx_email_fieldcolumn}<TD vAlign=middle {$tx_email_style}>{$tx_email_value} </TD>
{END tx_email_fieldcolumn}
    {BEGIN nu_ddd_fieldcolumn}<TD vAlign=middle {$nu_ddd_style}>{$nu_ddd_value} </TD>
{END nu_ddd_fieldcolumn}
    {BEGIN nu_telefone_fieldcolumn}<TD vAlign=middle {$nu_telefone_style}>{$nu_telefone_value} </TD>
{END nu_telefone_fieldcolumn}
    {BEGIN endrecord_block}<TD class=body2 {$endrecordblock_attrs}>&nbsp;</TD>
{END endrecord_block}
{END grid_record}
</TR>
{END grid_row}


</TABLE>{END grid_block}
{BEGIN pagination_block}<DIV id="pagination_block{$id}" class=toplist align=center>{$pagination}</DIV>
{END pagination_block}
{BEGIN message_block}<DIV id="message_block{$id}" class=toplist align=center valign="middle"><B>{$message}</B></DIV>
{END message_block}

</DIV>
{END body} 
{$footer}
